home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.cyberramp.net!news
- From: sinan@cyberramp.net (John Noland)
- Newsgroups: comp.lang.c
- Subject: Re: Why I can not bind
- Date: 23 Feb 1996 00:08:40 GMT
- Organization: Prose Software
- Message-ID: <4gj0i8$8u6@newshost.cyberramp.net>
- References: <312B86AF.165F@cis.ohio-state.edu>
- NNTP-Posting-Host: ramp3-1.cyberramp.net
- X-Newsreader: WinVN 0.99.5
-
- In article <312B86AF.165F@cis.ohio-state.edu>, jun@cis.ohio-state.edu says...
- >
-
- I apologize in advance for not being very helpful with this problem. I
- just wanted to point out a few things which you may or may not find
- useful in obtaining an answer to your query.
-
- > I encounter the run time error of "Unable to bind".
- > printf("Unable to bind");
-
- It's a little misleading to characterize the output of the above
- printf() as a run time error.
-
- >
- >#include <stdio.h>
- >#include <sys/types.h>
- >#include <sys/socket.h>
- >#include <netinet/in.h>
- >#include <arpa/inet.h>
- >
-
- I only *know* the contents of one of the above header files. Guess which one!
-
- > if (bind(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) <
-
- Where's the code for this function?
-
- You would probably have a lot better chance of receiving help in the
- comp.os.unix.programmer group. This group seems to be fairly dedicated
- to non-platform specific issues dealing with the C *language* itself and
- not with programming problems where a person just happens to be using
- C.
-
- Good luck
-
- - John
-
-